package com.chalk.feign;


import com.chalk.domain.User;
import org.springframework.stereotype.Component;

/**
 * @author xiaoqiang
 * @Description
 * @date 2019/3/7 17:17
 */
@Component
public class HystrixClientFallback implements UserFeignClient {
    @Override
    public User getUser(Long id) {
        User user = new User();
        user.setName("王五");
        return user;
    }
}
